package br.com.bringme.models.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import br.com.bringme.mvc.Model;

@Entity
@Table(name = "permissoes", schema = "bring_me")
@SequenceGenerator(schema="bring_me", name = "permissoes_seq", sequenceName = "permissoes_id_permissao_seq")
public class Permissao extends Model {

	@Id
	@Column(name = "id_permissao")
	@GeneratedValue(generator="permissoes_seq", strategy=GenerationType.AUTO)
	private Integer id;

	private String descricao;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	@Override
	public String toString() {
		return "Permissao [id=" + id + ", descricao=" + descricao + "]";
	}
	
	

}
